package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.dto.DealerLevelInfoDTO;
import com.yuanfeng.base.entity.BaseDealerLevelInfoEntity;
import com.yuanfeng.base.vo.DealerLevelInfoVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName BaseDealerLevelInfoMapper
 * @Description  经销商等级
 * @Author cyp
 * @Date 2023-08-04 18:18:38
 * @Version 1.0
 **/
@Mapper
public interface BaseDealerLevelInfoMapper extends BaseMapper<BaseDealerLevelInfoEntity> {

    /**
     * 新增
     * @param dealerLevelInfo
     */
    void insertSelective(DealerLevelInfoDTO dealerLevelInfo);

    /**
     * 编辑
     * @param dealerLevelInfo
     */
    void updateByPrimaryKeySelective(DealerLevelInfoDTO dealerLevelInfo);

    /**
     * 查询指定等级
     * @param dealerLevelId
     * @return
     */
    DealerLevelInfoDTO selectByPrimaryKey(Integer dealerLevelId);

    /**
     * 查询经销等级
     * @param dealerLevelInfo
     * @return
     */
    List<DealerLevelInfoVO> queryDealerLevelInfo(DealerLevelInfoDTO dealerLevelInfo);
}
